﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcApplication2.Models.CapNhatDatMuaModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    CapNhatDatMua
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div class='Khung'>Cập nhật sản phẩm đã đặt mua</div> <br />
    <div class="DangKyNoiDung">
    <img alt="HinhAnh" src='<%=Url.Content("~/Content/Images/"+Model.NguoiDungSanPham.HinhAnh) %>' />
    <%using (Html.BeginForm())
      { %>
        <div class="error"><%=Html.DisplayFor(r=>r.Error) %></div><br/>
        <table cellpadding="0" cellspacing="0" width="100%" style="border-collapse:collapse">
            <tr>
                <%=Html.HiddenFor(r=>r.NguoiDungSanPham.Id) %>
                <%=Html.HiddenFor(r=>r.NguoiDungSanPham.IdSanPham) %>
                <%=Html.HiddenFor(r=>r.NguoiDungSanPham.HinhAnh) %>
                <td width="20%">
                    <div class="DangKyLabel"><%=Html.LabelFor(r => r.NguoiDungSanPham.TenSanPham)%></div>
                </td>
                <td>
                    <%=Html.TextBoxFor(r => r.NguoiDungSanPham.TenSanPham, new { @class = "DangKyControl",@readonly="readonly"})%>
                </td>
            </tr>
            <tr>
				<td style="height: 10px"></td>
		    </tr>
            <tr>
                <td width="20%">
                    <div class="DangKyLabel"><%=Html.LabelFor(r => r.NguoiDungSanPham.DonGia)%></div>
                </td>
                <td>
                    <%=Html.TextBoxFor(r => r.NguoiDungSanPham.DonGia, new { @class = "DangKyControl",@readonly="readonly"})%>
                </td>
            </tr>
            <tr>
				<td style="height: 10px"></td>
		    </tr>
            <tr>
                <td width="20%">
                    <div class="DangKyLabel"><%=Html.LabelFor(r => r.NguoiDungSanPham.DiemThuong,"Điểm thưởng")%></div>
                </td>
                <td>
                    <%=Html.TextBoxFor(r => r.NguoiDungSanPham.DiemThuong, new { @class = "DangKyControl",@readonly="readonly"})%>
                </td>
            </tr>
            <tr>
				<td style="height: 10px"></td>
		    </tr>
            <tr>
                <td width="20%">
                    <div class="DangKyLabel"><%=Html.LabelFor(r => r.NguoiDungSanPham.NgayMua)%></div>
                </td>
                <td>
                    <%=Html.TextBoxFor(r => r.NguoiDungSanPham.NgayMua, new { @class = "DangKyControl",@readonly="readonly"})%>
                </td>
            </tr>
            <tr>
				<td style="height: 10px"></td>
		    </tr>
            <tr>
                <td width="20%">
                    <div class="DangKyLabel"><%=Html.LabelFor(r => r.NguoiDungSanPham.TenTrangThaiSanPham)%></div>
                </td>
                <td>
                    <%=Html.TextBoxFor(r => r.NguoiDungSanPham.TenTrangThaiSanPham, new { @class = "DangKyControl",@readonly="readonly"})%>
                </td>
            </tr>
            <tr>
				<td style="height: 10px"></td>
		    </tr>
            <tr>
                <td width="20%">
                    <div class="DangKyLabel"><%=Html.LabelFor(r => r.NguoiDungSanPham.SoLuong)%></div>
                </td>
                <td>
                    <%=Html.TextBoxFor(r => r.NguoiDungSanPham.SoLuong, new { @class = "DangKyControl",id="numeric"})%>
                    <%=Html.ValidationMessageFor(r => r.NguoiDungSanPham.SoLuong, null, new { @class="error"})%>
                </td>
            </tr>
            <tr>
				<td style="height: 10px"></td>
		    </tr>
            <tr>
                <td width="20%">
                    <div class="DangKyLabel"><%=Html.LabelFor(r => r.NguoiDungSanPham.IdDaiLyNhanSanPham)%></div>
                </td>
                <td>
                    <%=Html.DropDownListFor(r => r.NguoiDungSanPham.IdDaiLyNhanSanPham,new SelectList(Model.DaiLyList,"Id","TenDaiLy"), new { @class = "DangKyControl"})%>
                </td>
            </tr>
        </table>
        <br /><br />
        <input type="submit" name="btnCapNhat" value="Cập nhật" />
        <input type="reset" name="btnClear" value="Clear" />
    <br />
    <%}%> 
    </div><br />

</asp:Content>
